package com.itttq.gshop.domain.po;

import java.util.Date;
import java.util.List;
import java.math.BigDecimal;

/** 订单信息表 **/

public class OrderInfoPo extends BasePo {
	private static final long serialVersionUID = -7396275625227276L;
	/* 支付金额 */
	private BigDecimal amountPay;
	/* 订单总金额 */
	private BigDecimal amountTotal;
	/* 开户银行 */
	private String bank;
	/* 银行账户 */
	private String bankAccount;
	/* 交易流水号 */
	private String batch;
	/* 订单编号，生成规则（暂定）：站点编码+6位日期+6位时间+6位随机数。如17040910350187352611 */
	private String code;
	/* 联系人 */
	private String contacts;
	/* 创建时间，即注册时间 */
	private Date createTime;
	/* 创建人ID */
	private Integer creatorId;
	/* 推广获取积分。取整 */
	private Integer scorePromote;
	/* 订单积分 */
	private Integer score;

	private Integer id;
	/* 发票内容：明细 */
	private String invoiceContent;
	/* 发票抬头 */
	private String invoiceTitle;
	/* 发票类型：1、增值税发票；2、个人；3、普票；4、电子发票 */
	private Integer invoiceType;
	/* 订单来源：1：PC；2：Android；3、微信；4、IOS */
	private Integer orderSource;
	/* 下单时间，精确到秒 */
	private Date orderTime;
	/* 支付方式ID */
	private Integer payMethodId;
	/* 支付方式名称 */
	private String payMethodName;
	/* 支付时间 */
	private Date payTime;
	/* 多个逗号分隔，暂不支持多个 */
	private String phone;
	/* 订单备注 */
	private String remark;
	/* 配送方式 */
	private String shippingMethod;
	/* 配送地址 */
	private String shippingAddress;
	/* 配送时间 */
	private String shippingTime;
	/*
	 * 订单状态：TODO 差子状态字段 1、待支付（未支付）； 2、待发货（已支付）； 3、已发货； 4、已收货。
	 * 5、订单取消； 6、系统超时取消； 7、申请退款； 8、退款中； 9、已退款； 10、退款失败。
	 * 11、申请退货； 12、退货中； 13、退款中（已退货）； 14、已退款。 15、退货被拒。16、已删除，只有用户自己删除
	 */
	private Integer status;
	/* 订单状态名称。显示使用 */
	private String statusName;
	/* 纳税人识别码 */
	private String taxpayerCode;
	/* 数据更新时间 */
	private Date updateTime;
	/* 更新人ID */
	private Integer updaterId;
	/* 采购商ID */
	private Integer userId;
	/* 用户账号 */
	private String userName;

	// 传递值使用，不属于PO属性
	private List<UserCartPo> carts;
	// 订单起始时间，查询使用
	private Date orderTimeStart;
	// 订单结束时间，查询使用
	private Date orderTimeEnd;

	public Integer getScorePromote() {
		return scorePromote;
	}

	public void setScorePromote(Integer scorePromote) {
		this.scorePromote = scorePromote;
	}

	public Date getOrderTimeStart() {
		return orderTimeStart;
	}

	public void setOrderTimeStart(Date orderTimeStart) {
		this.orderTimeStart = orderTimeStart;
	}

	public Date getOrderTimeEnd() {
		return orderTimeEnd;
	}

	public void setOrderTimeEnd(Date orderTimeEnd) {
		this.orderTimeEnd = orderTimeEnd;
	}

	public List<UserCartPo> getCarts() {
		return carts;
	}

	public void setCarts(List<UserCartPo> carts) {
		this.carts = carts;
	}

	public String getShippingMethod() {
		return shippingMethod;
	}

	public void setShippingMethod(String shippingMethod) {
		this.shippingMethod = shippingMethod;
	}

	public String getShippingTime() {
		return shippingTime;
	}

	public void setShippingTime(String shippingTime) {
		this.shippingTime = shippingTime;
	}

	public Integer getScore() {
		return score;
	}

	public void setScore(Integer score) {
		this.score = score;
	}

	public BigDecimal getAmountPay() {
		return amountPay;
	}

	public void setAmountPay(BigDecimal amountPay) {
		this.amountPay = amountPay;
	}

	public BigDecimal getAmountTotal() {
		return amountTotal;
	}

	public void setAmountTotal(BigDecimal amountTotal) {
		this.amountTotal = amountTotal;
	}

	public String getBank() {
		return bank;
	}

	public void setBank(String bank) {
		this.bank = bank;
	}

	public String getBankAccount() {
		return bankAccount;
	}

	public void setBankAccount(String bankAccount) {
		this.bankAccount = bankAccount;
	}

	public String getBatch() {
		return batch;
	}

	public void setBatch(String batch) {
		this.batch = batch;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getContacts() {
		return contacts;
	}

	public void setContacts(String contacts) {
		this.contacts = contacts;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Integer getCreatorId() {
		return creatorId;
	}

	public void setCreatorId(Integer creatorId) {
		this.creatorId = creatorId;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getInvoiceContent() {
		return invoiceContent;
	}

	public void setInvoiceContent(String invoiceContent) {
		this.invoiceContent = invoiceContent;
	}

	public String getInvoiceTitle() {
		return invoiceTitle;
	}

	public void setInvoiceTitle(String invoiceTitle) {
		this.invoiceTitle = invoiceTitle;
	}

	public Integer getInvoiceType() {
		return invoiceType;
	}

	public void setInvoiceType(Integer invoiceType) {
		this.invoiceType = invoiceType;
	}

	public Integer getOrderSource() {
		return orderSource;
	}

	public void setOrderSource(Integer orderSource) {
		this.orderSource = orderSource;
	}

	public Date getOrderTime() {
		return orderTime;
	}

	public void setOrderTime(Date orderTime) {
		this.orderTime = orderTime;
	}

	public Integer getPayMethodId() {
		return payMethodId;
	}

	public void setPayMethodId(Integer payMethodId) {
		this.payMethodId = payMethodId;
	}

	public String getPayMethodName() {
		return payMethodName;
	}

	public void setPayMethodName(String payMethodName) {
		this.payMethodName = payMethodName;
	}

	public Date getPayTime() {
		return payTime;
	}

	public void setPayTime(Date payTime) {
		this.payTime = payTime;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getShippingAddress() {
		return shippingAddress;
	}

	public void setShippingAddress(String shippingAddress) {
		this.shippingAddress = shippingAddress;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getStatusName() {
		return statusName;
	}

	public void setStatusName(String statusName) {
		this.statusName = statusName;
	}

	public String getTaxpayerCode() {
		return taxpayerCode;
	}

	public void setTaxpayerCode(String taxpayerCode) {
		this.taxpayerCode = taxpayerCode;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Integer getUpdaterId() {
		return updaterId;
	}

	public void setUpdaterId(Integer updaterId) {
		this.updaterId = updaterId;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

}